package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="linkAricle")
public class LinkAricle implements Serializable{
	private static final long serialVersionUID = -126918476244126507L;
	private int id;
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 文章链接
	 */
	private String linkAricle;
	/**
	 * 所属机构
	 */
	private String organization;
	/**
	 * 来源公众号
	 */
	private String source;
	/**
	 * 创建时间
	 */
	private Date startTime;
	/**
	 * 创建人
	 */
	private String creator;
	/**
	 * 修改人
	 */
	private String updateAuthor;
	
	private Date updateTime;
	
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	 @Column(name="title",nullable=false,length=255)
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	 @Column(name="linkAricle",nullable=false,length=255)
	public String getLinkAricle() {
		return linkAricle;
	}
	public void setLinkAricle(String linkAricle) {
		this.linkAricle = linkAricle;
	}
	 @Column(name="organization",nullable=false,length=255)
	public String getOrganization() {
		return organization;
	}
	public void setOrganization(String organization) {
		this.organization = organization;
	}
	 @Column(name="source",nullable=false,length=255)
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="startTime",nullable=false,length=50)
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@Column(name="creator",nullable=false,length=50)
	public String getCreator() {
		return creator;
	}
	public void setCreator(String creator) {
		this.creator = creator;
	}
	@Column(name="updateAuthor",length=50)
	public String getUpdateAuthor() {
		return updateAuthor;
	}
	public void setUpdateAuthor(String updateAuthor) {
		this.updateAuthor = updateAuthor;
	}
	@Column(name="updateTime",length=50)
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
